473,416 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Encrypting a query string in URL

If users forget there passwords I want to send a link to them through email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want to
a send a url with ?userID=228 tacked on the end. Instead of the 228 being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy
Nov 19 '05 #1
4 7019
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want to
a send a url with ?userID=228 tacked on the end. Instead of the 228 being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy

Nov 19 '05 #2
It does help. I use that for my password hashing so I am somewhat familiar
with that name space. Which classes would I use within that namespace for
the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through
email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want
to
a send a url with ?userID=228 tacked on the end. Instead of the 228
being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy

Nov 19 '05 #3
I looked this up in chapter 21 of ASP.NET UnLeashed. It contains a few
examples of the different methods and their relitive strengths. Symmetric
encription is what i looked at.
thanks
kes (and yes i'm new to this one too!)

"Andy G" wrote:
It does help. I use that for my password hashing so I am somewhat familiar
with that name space. Which classes would I use within that namespace for
the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through
email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want
to
a send a url with ?userID=228 tacked on the end. Instead of the 228
being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy


Nov 19 '05 #4
Hi, take a look at this control

http://dotnetjunkies.com/WebLog/tsha.../17/32481.aspx

Cheers
Mark
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I looked this up in chapter 21 of ASP.NET UnLeashed. It contains a few
examples of the different methods and their relitive strengths. Symmetric
encription is what i looked at.
thanks
kes (and yes i'm new to this one too!)

"Andy G" wrote:
It does help. I use that for my password hashing so I am somewhat familiar with that name space. Which classes would I use within that namespace for the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:

> If users forget there passwords I want to send a link to them through
> email
> so they can click on a link and go to a change password page. eBay does> this by sending you a url that looks something like,
> http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want> to
> a send a url with ?userID=228 tacked on the end. Instead of the 228
> being
> in clear text I want to encrypt it somehow and then user
> Request.QueryString("userID") to get the encrypted value to decrypt it.>
> Could someone throw me a bone.
> \\
> Andy
>
>
>


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dayne | last post by:
Guys, I am writing a database application(vb.net , sql server) and is presently storing the connection settings in a xml file...not very secure though. What is a safer method in a dynamic...
10
by: Onur Bozkurt | last post by:
I'am sending some data by the querystring. But I don't want it to be seen exactly because of security reasons. Is there a way to encrypt it and later decrypt when reading the querystring...? I...
7
by: Bob Hollness | last post by:
OK, this has me pulling my hair out. All I want to do is encrypt/decrypt strings. They may be up to 400 characters in length though. So, I assume System.Security.Cryptography is the one to use....
11
by: frizzle | last post by:
Hi there, I need an encrypting function, but haven't got a clue where to start. First a string has to be encrypted with two different encryption keys. Both output should be anything a-z / A-Z /...
3
by: Thirsty Traveler | last post by:
I hear that MD5 is not recommended for encrypting database passwords in that it can be compromised. Does anyone have a recomendation (SHA-1, etc.) on an algorithm that would be more appropriate.
0
by: Chris Newby | last post by:
I'm looking for a way to transparently encrypt cookie data using Asp.Net 1.1. Ideally, developers could still do things like: HttpCookie cookie = new HttpCookie( "clearTextKey",...
5
by: Chris Dunaway | last post by:
I have an application which is installed on a network share to be run from one or more workstations. I have granted trust to the applications on the workstations and the appropriate permissions on...
2
by: Parrot | last post by:
I cannot get an answer as to why my session state no longer remains active between webpages after working for 2 years. So I want to try to pass data thru query strings in my url. I tried to use...
2
by: SeeSharp Bint | last post by:
Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms application. Temporarily, for my database application, I have been storing the various elements of database connection...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.